package com.example.test16;
import java.util.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.swing.*;
//

@RestController
@Slf4j
public class LoggerController {
    @RequestMapping("/logger")
    public String setLog() {
        log.trace("trace级别日志");
        log.info("info级别日志");
        log.warn("warn级别日志");
        log.error("error级别日志");
        return "日志已输出";
    }

}